<?php
    //获取验证码
    header("Access-Control-Allow-Origin: *"); // 允许跨域的地址，* 表示全部
    header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); // 允许的请求方法
    header("Access-Control-Allow-Headers: version, access-token, user-token"); // 允许的请求头属性
    header('content-type:text/html;charset=utf-8');


    require "../verifyCodeSDK/demo/sendSms.php";

    $Verphone = $_POST['Verphone'];//验证码手机号

    session_start();
    $_SESSION['Verphone'] = $Verphone;
    $code = sendSms();
    var_dump($code);
    $_SESSION['code'] = $code;
